package com.reddys.rrp.enrollment.util;

import java.util.List;


import org.hibernate.Query;
import org.hibernate.Session;

import com.reddys.rrp.enrollment.db.Course;

public class Utilities {
	
	public static List<Course> getCourseList(){
		HibernateUtil util = new HibernateUtil();
		Session session = util.getSession();
		Query query = session.getNamedQuery("fetchCourses");
		List<Course> courseList = query.list();
		return courseList;
	}

}
